#ifndef CHATSERVER_H
#define CHATSERVER_H

#include <QTcpServer>
#include <QTcpSocket>
#include <QCoreApplication>
#include <QDebug>
#include <QList>

class ChatServer : public QTcpServer {
    Q_OBJECT
public:
    ChatServer(QObject *parent = nullptr);

private slots:
    void onNewConnection();
    void onReadyRead();

private:
    QList<QTcpSocket*> clients;
};

#endif // CHATSERVER_H
